include ../Makefile.include

version   := 1.4.8
build_dir := $(software)-$(version)
source    := $(build_dir).tar.bz2

$(build_dir): $(source) $(deplibs)
	rm -rf $(build_dir)
	tar xjf $(source)
	cd $(build_dir); ./configure --disable-shared --with-kernel=`pwd`/../../linux/linux-$(kernel_version)

$(package): $(build_dir)
	rm -rf tmp
	make -C $(build_dir) V=1
	mkdir -p tmp/sbin
	install $(build_dir)/iptables-multi tmp/sbin/iptables
	tar -C tmp -cpzf $@ .

clean: $(software)_clean
	-rm -rf $(build_dir)

